package com.jgdt.jgdtkasannong_university_gene_backend.mapper.base;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jgdt.jgdtkasannong_university_gene_backend.dto.CameraDeviceSequenceDto;
import com.jgdt.jgdtkasannong_university_gene_backend.dto.EffectiveSequenceDto;
import com.jgdt.jgdtkasannong_university_gene_backend.entity.base.CameraDevice;
import com.jgdt.jgdtkasannong_university_gene_backend.vo.base.QueryBaseInfoByIdParameter;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 摄像头设备表 Mapper 接口
 * </p>
 *
 * @author chenzg
 * @since 2025-04-27
 */
@Mapper
public interface CameraDeviceMapper extends BaseMapper<CameraDevice> {

    IPage<CameraDeviceSequenceDto> getCameraDeviceSequenceDtoPage(@Param("page") Page<QueryBaseInfoByIdParameter> page,@Param("baseId") Integer baseId);

    List<EffectiveSequenceDto> getEffectiveSequence(@Param("cameraDevice") CameraDevice cameraDevice);
}
